package org.hzero.order.domain.repository;

import org.hzero.mybatis.base.BaseRepository;
import org.hzero.order.domain.entity.Customer;

import io.choerodon.core.domain.Page;
import io.choerodon.mybatis.pagehelper.domain.PageRequest;

/**
 * @author xiuiqng.Yang-Estelle-양수청
 * @date 2019/8/5 13:37
 */

/**
 * Repository
 */
public interface CustomerRepository extends BaseRepository<Customer> {

    /**
     * 分页查询客户
     * @param customer
     * @param pageRequest  分页参数
     * @return
     */
    Page<Customer> pageCustomer(Customer customer, String companyNumber, PageRequest pageRequest);

    /**
     * 查询客户值集
     * @param pageRequest
     * @return
     */
    Page<Customer> pageCustomerName(PageRequest pageRequest);
}
